package com.sjb.sixteen_journey_backend.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

/**
 * <p>
 * 关注与粉丝表
 * </p>
 *
 * @author jcz
 * @since 2024-07-17
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("follower")
public class Follower implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 关注与粉丝表的唯一标识
     */
    @TableId(value = "follower_id", type = IdType.AUTO)
    private Integer followerId;

    /**
     * 关注者id(A)
     */
    @TableField("user_id")
    private Integer userId;

    /**
     * A用户名称
     */
    @TableField("user_username")
    private String userUsername;

    /**
     * A用户头像
     */
    @TableField("user_avatar")
    private String userAvatar;

    /**
     * 被关注者/粉丝id(B)
     */
    @TableField("fans_id")
    private Integer fansId;

    /**
     * B用户名称
     */
    @TableField("fans_username")
    private String fansUsername;

    /**
     * B用户头像
     */
    @TableField("fans_avatar")
    private String fansAvatar;

    /**
     * A是否关注B（0否；1是）
     */
    @TableField("status")
    private Boolean status;


}
